from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import staffView,ActiveStaffView,TestCeleryView,stafflistViewSet,staffDownloadView,staffUploadView

router = DefaultRouter()
router.register(r'stafflist', stafflistViewSet, basename='stafflist')



urlpatterns = [
    path('addstaff/', staffView.as_view(), name='staff'),
    path('active/', ActiveStaffView.as_view(), name='activestaff'),
    path('test/celery/', TestCeleryView.as_view(), name='test_celery'),
    path('download/', staffDownloadView.as_view(), name='download'),
    path('upload/', staffUploadView.as_view(), name='upload'),
]+router.urls